home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / 1aday30.zip / 1ADAY.DOC < prev   
Text File  |  1991-09-29  |  4KB  |  93 lines

  1.                             1ADAY.COM
  2.                        Daily Event Manager
  3.                                      Version 3.0
  4.                            (Shareware)
  5.  
  6.      The idea for 1ADAY.COM came from the July, 1991 PCComputing
  7. DOS column titled "Get Your PC Chores Done Once a Day, Every Day"
  8. which outlined a method to trick a batch file into running a task
  9. just once a day. The method involved creating three batch files
  10. and a special directory, something I thought could be programmed
  11. much more elegantly in C than in DOS's batch language. 1ADAY.COM
  12. doesn't use any batch files, no pesky zero-length files to hold
  13. information, no special directories, nor does it require any
  14. expertise from you other than the ability to modify your
  15. AUTOEXEC.BAT file slightly.
  16.  
  17.      I like to run CHKDSK once a day on Computasaurus, my old,
  18. steam-powered XT clone. But running CHKDSK every time I rebooted,
  19. which could be several times a day, is a waste of time. Now I
  20. have added this line to AUTOEXEC.BAT:
  21.  
  22.                          1ADAY CHKDSK
  23.  
  24.      1ADAY finds the system's current date and compares it to
  25. it's own file date. If they are different, 1ADAY then runs CHKDSK
  26. and then modifies the file date. 
  27.  
  28.      If you run more than one file once a day, say CHKDSK and a
  29. virus scan, 1ADAY ( since version 2.0) will accept multiple
  30. arguments on the command line:
  31.  
  32.                 1ADAY CHKDSK A:\DOS\VIRUSHIELD
  33.                             ^
  34.          (Note the space between the two commands)
  35.  
  36. In fact, 1ADAY will run as many programs that you can squeeze on
  37. to the command line (each argument separated by a space). If this
  38. isn't enough then you can list all of the programs you need in a
  39. batch file and call the batch file from 1ADAY.
  40.  
  41. If you are going to run a program that requires a command line
  42. argument of it's own, just enclose the argument in quotation
  43. marks:
  44.  
  45.                1ADAY "SCAN C:"
  46.  
  47.      On the first boot of the day, you will see a copyright
  48. message followed by
  49.  
  50.             [PATH] 1ADAY.COM: [FILENAME]
  51.  
  52. This will be displayed before each program you have listed
  53. on the command line is executed.
  54.  
  55.      On subsequent boots, you will see the copyright message
  56. followed by
  57.  
  58.             1ADAY: Same day reboot.
  59.  
  60. This tells you that 1ADAY.COM knows that you have booted before
  61. on this date and is skipping all of the tasks it has already
  62. performed. Then the next event in your AUTOEXEC.BAT file is
  63. executed.
  64.  
  65.      And a couple of notes on 1ADAY.COM's idiosyncrasies: If your
  66. session at the PC runs after midnight and you reboot, 1ADAY.COM
  67. will notice the date change and do it's daily "thing". 1ADAY.COM
  68. only checks the current day, so if you only use your PC once a
  69. month on the same day, this will be treated as a same-day reboot.
  70.  
  71.      Version 1 allowed only one command line argument because I
  72. wrote the program for myself and only used 1 program at each boot
  73. up. Version 2 allowed as many arguments as a DOS command line
  74. will allow. Version 3 is a cleaner, leaner version with less junk
  75. in the code and in the display.
  76.  
  77. If you experience any problems or have any suggestions for
  78. improvements, please let me know. I can be reached on:
  79.  
  80.                       CompuServe 73537,643
  81.                          Genie   CWWHITE
  82.  
  83. or much more slowly by mail at the address below.
  84.  
  85. 1ADAY.COM is shareware. If you use 1ADAY.COM please send $10.00
  86. to:
  87.  
  88.                            Chris White
  89.                       5412 Wallingford Arch
  90.                     Virginia Beach, VA 23464
  91.  
  92. 1ADAY.COM Copyright (C) Chris White 1991. All rights reserved.
  93. Documentation update: September 29, 1991